import store from '@/store'

const roleJudge = {
  getRole() {
    const userStore = store.useUserStore()
    return userStore.role
  },
  isAdmin() {
    return this.getRole() === 'ADMIN'
  },
  isNormal() {
    return this.getRole() === 'NORMAL'
  }
}
export default roleJudge
